Part Number Hot Search : 
478M00 TS393ID KEMET AN8090S 003930 AM1013TR 3040C 2SC388
Product Description
Full Text Search
 

To Download UPD784031GK-BE9 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet mos integrated circuit m pd784031 the m pd784031 is a product of the m pd784038 sub-series in the 78k/iv series. it contains various peripheral hardware such as ram, i/o ports, 8-bit resolution a/d and d/a converters, timers, serial interface, and interrupt functions, as well as a high-speed, high-performance cpu. the m pd784031 is a rom-less product of the m pd784035 and m pd784036. for specific functions and other detailed information, consult the following users manual. this manual is required reading for design work. m pd784038, 784038y sub-series users manual, hardware : u11316e 78k/iv series users manual, instruction : u10905e features ? pin-compatible with the m pd78234, m pd784026, and m pd784038y sub-series ? minimum instruction execution time: 125 ns (at 32 mhz) ? number of i/o ports: 46 ? serial interface: 3 channels uart/ioe (3-wire serial i/o): 2 channels csi (3-wire serial i/o, 2-wire serial i/o): 1 channel ? pwm outputs: 2 applications lbp, automatic-focusing camera, ppc, printer, electronic typewriter, air conditioner, electronic musical instru- ments, cellular telephone, etc. ordering information part number package internal rom internal ram (bytes) (bytes) m pd784031gc-3b9 80-pin plastic qfp (14 14 2.7 mm) none 2 048 m pd784031gc-8bt 80-pin plastic qfp (14 14 1.4 mm) none 2 048 m pd784031gk-be9 80-pin plastic tqfp (fine pitch) (12 12 mm) none 2 048 the mark shows major revised points. the information in this document is subject to change without notice. ? timer/counters 16-bit timer/counter 3 units 16-bit timer 1 unit ? standby function halt/stop/idle mode ? clock frequency division function ? watchdog timer: 1 channel ? a/d converter: 8-bit resolution 8 channels ? d/a converter: 8-bit resolution 2 channels ? power supply voltage: v dd = 2.7 to 5.5 v document no. u11507ej1v0ds00 (1st edition) date published march 1997 j printed in japan 16/8-bit single-chip microcontroller 1997
m pd784031 2 78k/iv series product development diagram : product under mass production : product under development standard products development assp development pd78f4943 sub-series pd784908 sub-series m vcr servo, 100-pin, built-in analog amplifier rom: 48k/62k pd784915 sub-series m 100-pin, built-in iebus tm controller rom: 96k/128k m 80-pin, for cd-rom flash memory: 56k pd784054 80-pin, 8-bit a/d, 8-bit d/a rom: none/48k/64k m m m m m m m product containing for an i 2 c bus interface circuit 80-pin, 8-bit a/d, 8-bit d/a rom: none/48k/64k/96k/128k product containing for an i 2 c bus interface circuit 100-pin, 8-bit a/d, 8-bit d/a rom: 96k/128k 80-pin, 10-bit a/d rom: 32k pd784046 sub-series sub-set pd784026 sub-series pd784216 sub-series m 80-pin, 10-bit a/d rom: 32k/64k pd784046 sub-series pd784216y sub-series pd784038 sub-series pd784038y sub-series
m pd784031 3 functions item function rom ram total input input/output output pins with pull- up resistor led direct drive outputs transistor direct drive 113 8 bits 16 registers 8 banks, or 16 bits 8 registers 8 banks (memory mapping) 125 ns/250 ns/500 ns/1 000 ns (at 32 mhz) none 2 048 bytes program and data: 1m byte 46 8 34 4 32 8 8 4 bits 2, or 8 bits 1 timer/counter 0: timer register 1 pulse output capability (16 bits) capture register 1 toggle output compare register 2 pwm/ppg output one-shot pulse output timer/counter 1: timer register 1 pulse output capability (8/16 bits) capture register 1 real-time output (4 bits 2) capture/compare register 1 compare register 1 timer/counter 2: timer register 1 pulse output capability (8/16 bits) capture register 1 toggle output capture/compare register 1 pwm/ppg output compare register 1 timer 3 : timer register 1 (8/16 bits) compare register 1 12-bit resolution 2 channels uart/ioe (3-wire serial i/o) : 2 channels (incorporating baud rate generator) csi (3-wire serial i/o, 2-wire serial i/o): 1 channel 8-bit resolution 8 channels 8-bit resolution 2 channels 1 channel halt/stop/idle mode 23 (16 internal, 7 external (sampling clock variable input: 1)) brk instruction, brkcs instruction, operand error 1 internal, 1 external 15 internal, 6 external 4-level programmable priority 3 operation statuses: vectored interrupt, macro service, context switching v dd = 2.7 to 5.5 v 80-pin plastic qfp (14 14 2.7 mm) 80-pin plastic qfp (14 14 1.4 mm) 80-pin plastic tqfp (fine pitch) (12 12 mm) number of basic instructions (mnemonics) general-purpose register minimum instruction execution time internal memory memory space i/o ports additional function pins note real-time output ports timer/counter pwm outputs serial interface a/d converter d/a converter watchdog timer standby interrupt hardware source software source nonmaskable maskable supply voltage package note additional function pins are included in the i/o pins.
m pd784031 4 contents 1. differences between m pd784038 sub-series ............................................................ 6 2. main differences between m pd784038, m pd784038y, m pd784026, and m pd78234 sub-series ................................................................................................... 7 3. pin configuration (top view) ......................................................................................... 8 4. system configuration example (ppc) ........................................................................ 10 5. block diagram ...................................................................................................................... 11 6. list of pin functions ......................................................................................................... 12 6.1 port pins ............................................................................................................................... ............. 12 6.2 non-port pins ............................................................................................................................... .... 13 6.3 i/o circuits for pins and handling of unused pins .................................................................... 15 7. cpu architecture ................................................................................................................ 18 7.1 memory space ............................................................................................................................... ... 18 7.2 cpu registers ............................................................................................................................... ... 20 7.2.1 general-purpose registers ................................................................................................ 20 7.2.2 control registers ................................................................................................................ 21 7.2.3 special function registers (sfrs) .................................................................................... 22 8. peripheral hardware functions ................................................................................ 27 8.1 ports ............................................................................................................................... .................... 27 8.2 clock generator ............................................................................................................................... 28 8.3 real-time output port ..................................................................................................................... 30 8.4 timers/counters ............................................................................................................................... 31 8.5 pwm output (pwm0, pwm1) .......................................................................................................... 33 8.6 a/d converter ............................................................................................................................... .... 34 8.7 d/a converter ............................................................................................................................... .... 35 8.8 serial interface ............................................................................................................................... .. 36 8.8.1 asynchronous serial interface/three-wire serial i/o (uart/ioe) ................................ 37 8.8.2 synchronous serial interface (csi) .................................................................................. 39 8.9 edge detection function ................................................................................................................ 40 8.10 watchdog timer ............................................................................................................................... 40 9. interrupt function ............................................................................................................ 41 9.1 interrupt source ............................................................................................................................... 41 9.2 vectored interrupt ............................................................................................................................ 43 9.3 context switching ............................................................................................................................ 44 9.4 macro service ............................................................................................................................... .... 44 9.5 examples of macro service applications ..................................................................................... 45
m pd784031 5 10. local bus interface .......................................................................................................... 47 10.1 memory expansion .......................................................................................................................... 47 10.2 memory space ............................................................................................................................... ... 48 10.3 programmable wait ......................................................................................................................... 49 10.4 pseudo-static ram refresh function .......................................................................................... 49 10.5 bus hold function ........................................................................................................................... 49 11. standby function ................................................................................................................ 50 12. reset function ..................................................................................................................... 51 13. instruction set .................................................................................................................... 52 14. electrical characteristics .......................................................................................... 57 15. package drawings .............................................................................................................. 77 16. recommended soldering conditions ......................................................................... 80 appendix a development tools ...................................................................................... 82 appendix b related documents ...................................................................................... 84
m pd784031 6 1. differences between m pd784038 sub-series the only difference between the m pd784031, m pd784035, m pd784036, m pd784037, and m pd784038 is their capacity of internal memory. the m pd78p4038 is produced by replacing the masked rom in the m pd784035, m pd784036, m pd784037, or m pd784038 with 128k-byte one-time prom or eprom. table 1-1 shows the differences between these products. table 1-1. differences between the m pd784038 sub-series product item internal rom internal ram package 128k bytes (masked rom) 4 352 bytes 96k bytes (masked rom) 3 584 bytes m pd784035 48k bytes (masked rom) 2 048 bytes 80-pin plastic qfp (14 14 2.7 mm) 80-pin plastic qfp (14 14 1.4 mm) 80-pin plastic tqfp (fine pitch) (12 12 mm) m pd784037 (under development) m pd784038 (under development) 80-pin ceramic wqfn (14 14 mm) m pd784031 none m pd784036 64k bytes (masked rom) m pd78p4038 128k bytes (one-time prom or eprom)
m pd784031 7 2. main differences between m pd784038, m pd784038y, m pd784026, and m pd78234 sub- series series m pd784038 sub-series m pd784026 sub-series m pd78234 sub-series item m pd784038y sub-series number of basic instructions 113 65 (mnemonics) minimum instruction execution 125 ns 160 ns 333 ns time (at 32 mhz) (at 25 mhz) (at 12 mhz) memory space (program/data) 1m byte in total 64k bytes/1m byte timer/counter 16-bit timer/counter 1 16-bit timer/counter 1 8/16-bit timer/counter 2 8-bit timer/counter 2 8/16-bit timer 1 8-bit timer 1 clock output function available unavailable watchdog timer available unavailable serial interface uart/ioe (3-wire serial i/o) uart/ioe (3-wire serial i/o) uart 1 channel 2 channels 2 channels csi (3-wire serial i/o, sbi) csi (3-wire serial i/o, 2-wire csi (3-wire serial i/o, sbi) 1 channel serial i/o, i 2 c bus note ) 1 channel 1 channel interrupt context switching available unavailable priority 4 levels 2 levels standby function 3 modes (halt, stop, idle) 2 modes (halt, stop) operation clock switching selectable from f xx /2, f xx /4, f xx /8, or f xx /16 fixed to f xx /2 pin mode pin unavailable to specify rom-less mode functions (always in the high level for the m pd78233 or m pd78237) test pin pin for testing the device unavailable low level during ordinary use package 80-pin plastic qfp 80-pin plastic qfp 80-pin plastic qfp (14 14 2.7 mm) (14 14 2.7 mm) (14 14 2.7 mm) 80-pin plastic qfp 80-pin plastic tqfp 94-pin plastic qfp (14 14 1.4 mm) (fine pitch) (12 12 mm): (20 20 mm) 80-pin plastic tqfp for the m pd784021 only 84-pin plastic qfj (fine pitch) (12 12 mm) 80-pin ceramic wqfn (1 150 1 150 mil) 80-pin ceramic wqfn (14 14 mm): 94-pin ceramic wqfn (14 14 mm): for the m pd78p4026 only (20 20 mm): for the m pd78p4038 and for the m pd78p238 only m pd78p4038y only note for the m pd784038y sub-series only.
m pd784031 8 3. pin configuration (top view) ? 80-pin plastic qfp (14 14 2.7 mm) m pd784031gc-3b9 ? 80-pin plastic qfp (14 14 1.4 mm) m pd784031gc-8bt ? 80-pin plastic tqfp (fine pitch) (12 12 mm) m pd784031gk-be9 note connect the test pin to v ss0 directly. 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 p74/ani4 p73/ani3 p72/ani2 p71/ani1 p70/ani0 v dd0 p17 p16 p15 p14/t x d2/so2 p13/r x d2/si2 p12/asck2/sck2 p11/pwm1 p10/pwm0 test note v ss0 astb ad0 ad1 ad2 p32/sck0/scl p33/so0/sda p34/ to0 p35/ to1 p36/ to2 p37/ to3 reset v dd1 x2 x1 v ss1 p00 p01 p02 p03 p04 p05 p06 p07 p67/refrq/hldak p66/ wait/hldrq wr rd p63/a19 p62/a18 p61/a17 p60/a16 a15 a14 a13 a12 a11 a10 a9 a8 ad7 ad6 ad5 ad4 ad3 p31/ txd/so1 p30/rxd/si1 p27/si0 p26/intp5 p25/intp4/asck/sck1 p24/intp3 p23/intp2/ci p22/intp1 p21/intp0 p20/nmi av ref3 av ref2 ano1 ano0 av ss av ref1 av dd p77/ani7 p76/ani6 p75/ani5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
m pd784031 9 p70-p77 : port 7 pwm0, pwm1 : pulse width modulation output rd : read strobe refrq : refresh request reset : reset rxd, rxd2 : receive data sck0-sck2 : serial clock scl : serial clock sda : serial data si0-si2 : serial input so0-so2 : serial output test : test to0-to3 : timer output txd, txd2 : transmit data v dd0 , v dd1 : power supply v ss0 , v ss1 : ground wait : wait wr : write strobe x1, x2 : crystal a8-a19 : address bus ad0-ad7 : address/data bus ani0-ani7 : analog input ano0, ano1 : analog output asck, asck2 : asynchronous serial clock astb : address strobe av dd : analog power supply av ref1 -av ref3 : reference voltage av ss : analog ground ci : clock input hldak : hold acknowledge hldrq : hold request intp0-intp5 : interrupt from peripherals nmi : non-maskable interrupt p00-p07 : port 0 p10-p17 : port 1 p20-p27 : port 2 p30-p37 : port 3 p60-p63, p66, p67 : port 6
m pd784031 10 4. system configuration example (ppc) serial communication sensing paper transport temperature of the fusing heater brightness of the lamp lever for adjusting the tone of the copy lever for compensating the tone of the copy reset circuit reset ani3 ani2 ani1 ani0 intp0 txd rd oe a17 ce a8-a16 a8-a16 ad0-ad7 latch o0-o7 a0-a7 astb rxd p11 p15 p16 p17 sck1 si1 so1 p04 p06 p07 p66 pwm0 p00-p03 p33 p34 p35 p36 p37 driver sensing paper sensing paper feed sensing paper ejection sensing the position of the scanner station operator panel high-voltage control circuit fusing heater control circuit lamp regulator drum, toner, and charge for transfer fusing roller lamp for lighting the original lamp for discharging (dc stepping motor) main motor m clutch for stopping the scanner station clutch for forwarding the scanner station clutch for the resist shutter clutch for manual feeding clutch for cassette feeding solenoid sl sl sl sl sl pd784031 m pd74hc573 m pd27c1001a m
m pd784031 11 5. block diagram nmi intp3 to0 to1 intp0 intp1 intp2/ci to2 to3 p00-p03 p04-p07 pwm0 pwm1 ano0 ano1 av ref2 av ref3 intp5 ani0-ani7 txd/so1 asck/sck1 rxd/si1 asck2/sck2 sck0/scl so0/sda si0 a8-a15 p00-p07 p20-p27 p10-p17 p30-p37 p70-p77 astb refrq/hldak wr wait/hldrq ad0-ad7 rd a16-a19 x1 x2 reset test v dd0 , v dd1 v ss0 , v ss1 av dd av ref1 av ss uart/ioe2 baud-rate generator uart/ioe1 clocked serial interface bus interface port 0 port 1 port 2 port 3 port 7 system control programmable interrupt controller timer/counter 0 timer/counter 1 timer/counter 2 timer 3 real-time output port pwm d /a converter a /d converter intp0-intp5 (16 bits) (16 bits) (16 bits) (16 bits) 78k /iv cpu core watchdog timer baud-rate generator txd2/so2 rxd2/si2 ram p60-p63 p66, p67 port 6
m pd784031 12 6. list of pin functions 6.1 port pins function port 0 (p0): 8-bit i/o port. functions as a real-time output port (4 bits 2). inputs and outputs can be specified bit by bit. the use of the pull-up resistors can be specified by software for the pins in the input mode together. can drive a transistor. port 1 (p1): 8-bit i/o port. inputs and outputs can be specified bit by bit. the use of the pull-up resistors can be specified by software for the pins in the input mode together. can drive led. port 2 (p2): 8-bit input-only port. p20 does not function as a general-purpose port (nonmaskable inter- rupt). however, the input level can be checked by an interrupt service routine. the use of the pull-up resistors can be specified by software for pins p22 to p27 (in units of 6 bits). the p25/intp4/asck/sck1 pin functions as the sck1 output pin by csim1. port 3 (p3): 8-bit i/o port. inputs and outputs can be specified bit by bit. the use of the pull-up resistors can be specified by software for the pins in the input mode together. port 6 (p6): p60 to p63 are an output-only port. inputs and outputs can be specified bit by bit for pins p66 and p67. the use of the pull-up resistors can be specified by software for the pins in the input mode together. port 7 (p7): 8-bit i/o port. inputs and outputs can be specified bit by bit. pin p00-p07 p10 p11 p12 p13 p14 p15-p17 p20 p21 p22 p23 p24 p25 p26 p27 p30 p31 p32 p33 p34-p37 p60-p63 p66 p67 p70-p77 i/o i/o i/o input i/o i/o i/o dual-function - pwm0 pwm1 asck2/sck2 rxd2/si2 txd2/so2 - nmi intp0 intp1 intp2/ci intp3 intp4/asck/sck1 intp5 si0 rxd/si1 txd/so1 sck0/scl so0/sda to0-to3 a16-a19 wait/hldrq refrq/hldak ani0-ani7
m pd784031 13 pin i/o dual-function function to0-to3 output p34-p37 timer output ci input p23/intp2 input of a count clock for timer/counter 2 r x d input p30/si1 serial data input (uart0) r x d2 p13/si2 serial data input (uart2) t x d output p31/so1 serial data output (uart0) t x d2 p14/so2 serial data output (uart2) asck input p25/intp4/sck1 baud rate clock input (uart0) asck2 p12/sck2 baud rate clock input (uart2) sda i/o p33/so0 serial data i/o (2-wire serial i/o) si0 input p27 serial data input (3-wire serial i/o0) si1 p30/r x d serial data input (3-wire serial i/o1) si2 p13/r x d2 serial data input (3-wire serial i/o2) so0 output p33/sda serial data output (3-wire serial i/o0) so1 p31/t x d serial data output (3-wire serial i/o1) so2 p14/t x d2 serial data output (3-wire serial i/o2) sck0 i/o p32/scl serial clock i/o (3-wire serial i/o0) sck1 p25/intp4/asck serial clock i/o (3-wire serial i/o1) sck2 p12/asck2 serial clock i/o (3-wire serial i/o2) scl p32/sck0 serial clock i/o (2-wire serial i/o) nmi input p20 external interrupt request - intp0 p21 input of a count clock for timer/counter 1 capture/trigger signal for cr11 or cr12 intp1 p22 input of a count clock for timer/counter 2 capture/trigger signal for cr22 intp2 p23/ci input of a count clock for timer/counter 2 capture/trigger signal for cr21 intp3 p24 input of a count clock for timer/counter 0 capture/trigger signal for cr02 intp4 p25/asck/sck1 - intp5 p26 input of a conversion start trigger for a/d converter ad0-ad7 i/o - time multiplexing address/data bus (for connecting external memory) a8-a15 output - high-order address bus (for connecting external memory) a16-a19 output p60-p63 high-order address bus during address expansion (for connecting external memory) rd output - strobe signal output for reading the contents of external memory wr output - strobe signal output for writing on external memory wait input p66/hldrq wait signal insertion refrq output p67/hldak refresh pulse output to external pseudo static memory hldrq input p66/wait input of bus hold request hldak output p67/refrq output of bus hold response astb output - latch timing output of time multiplexing address (a0-a7) (for connecting external memory) 6.2 non-port pins (1/2)
m pd784031 14 6.2 non-port pins (2/2) notes 1. the potential of the v dd0 pin must be equal to that of the v dd1 pin. 2. the potential of the v ss0 pin must be equal to that of the v ss1 pin. pin reset x1 x2 ani0-ani7 ano0, ano1 av ref1 av ref2 , av ref3 av dd av ss v dd0 note 1 v dd1 note 1 v ss0 note 2 v ss1 note 2 test i/o input input - input output - function chip reset crystal input for system clock oscillation (a clock pulse can also be input to the x1 pin.) analog voltage inputs for the a/d converter analog voltage inputs for the d/a converter application of a/d converter reference voltage application of d/a converter reference voltage positive power supply for the a/d converter ground for the a/d converter positive power supply of the port part positive power supply except for the port part ground of the port part ground except for the port part directly connect to v ss0 . (the test pin is for the ic test.) dual-function - - p70-p77 - -
m pd784031 15 6.3 i/o circuits for pins and handling of unused pins table 6-1 describes the types of i/o circuits for pins and the handling of unused pins. figure 6-1 shows the configuration of these various types of i/o circuits. table 6-1. types of i/o circuits for pins and handling of unused pins (1/2) pin i/o circuit type i/o recommended connection method for unused pins p00-p07 5-h i/o input state : to be connected to v dd0 p10/pwm0 output state: to be left open p11/pwm1 p12/asck2/sck2 8-c p13/rxd2/si2 5-h p14/txd2/so2 p15-p17 p20/nmi 2 input to be connected to v dd0 or v ss0 p21/intp0 p22/intp1 2-c to be connected to v dd0 p23/intp2/ci p24/intp3 p25/intp4/asck/sck1 8-c i/o input state : to be connected to v dd0 output state: to be left open p26/intp5 2-c input to be connected to v dd0 p27/si0 p30/rxd/si1 5-h i/o input state : to be connected to v dd0 p31/txd/so1 output state: to be left open p32/sck0/scl 10-b p33/so0/sda p34/to0-p37/to3 5-h ad0-ad7 a8-a15 output note to be left open p60/a16-p63/a19 rd wr p66/wait/hldrq i/o input state: to be connected to v dd0 p67/refrq/hldak output state: to be left open p70/ani0-p77/ani7 20-a input state : to be connected to v dd0 or v ss0 output state: to be left open ano0, ano1 12 output to be left open astb 4-b note these pins function as output-only pins depending on the internal circuit, though their i/o type is 5-h.
m pd784031 16 table 6-1. types of i/o circuits for pins and handling of unused pins (2/2) pin i/o circuit type i/o recommended connection method for unused pins reset 2 input - test 1-a to be connected to v ss0 directly av ref1 -av ref3 - to be connected to v ss0 av ss av dd to be connected to v dd0 caution when the i/o mode of an i/o dual-function pin is unpredictable, connect the pin to v dd0 through a resistor of 10 to 100 kilohms (particularly when the voltage of the reset input pin becomes higher than that of the low level input at power-on or when i/o is switched by software). remark since type numbers are consistent in the 78k series, those numbers are not always serial in each product. (some circuits are not included.)
m pd784031 17 figure 6-1. i/o circuits for pins type 1 type 2-c type 2 type 4-b type 8-c type 10-b type 5-h type 12 type 20-a in schmitt trigger input with hysteresis characteristics data v dd0 v ss0 p n out output disable push-pull output which can output high impedance (both the positive and negative channels are off.) n p analog output voltage out in v dd0 v ss0 p n schmitt trigger input with hysteresis characteristics in v dd0 p pull-up enable data v dd0 v ss0 p n in/out output disable v dd0 p pull-up enable input enable data v dd0 p n in/out output disable v dd0 v ss0 p pull-up enable data v dd0 p n in/out output disable v dd0 v ss0 p pull-up enable open drain data comparator v dd0 v ss0 av ref av ss p (threshold voltage) p n n in/out output disable input enable + C
m pd784031 18 7. cpu architecture 7.1 memory space a 1m-byte memory space can be accessed. by using a location instruction, the mode for mapping internal data areas (special function registers and internal ram) can be selected. a location instruction must always be executed after a reset, and can be used only once. (1) when the location 0 instruction is executed internal data areas are mapped to 0f700h-0ffffh. (2) when the location 0fh instruction is executed internal data areas are mapped to ff700h-fffffh.
m pd784031 19 figure 7-1. m pd784031 memory map internal ram (2k bytes) external memory (960k bytes) general-purpose registers (128 bytes) macro service control word area (42 bytes) program/data area (1 536 bytes) callf entry area (2k bytes) callt table area (64 bytes) vector table area (64 bytes) internal ram (2k bytes) external memory (1 046 272 bytes) when the location 0 instruction is executed special function registers (sfrs) (256 bytes) data area (512 bytes) when the location 0fh instruction is executed special function registers (sfrs) (256 bytes) external memory (63 232 bytes) note note fffffh 10000h 0ffffh 0ffdfh 0ffd0h 0ff00h 0feffh 0fd00h 0fcffh 0f700h 0f6ffh 00000h 0feffh 0fe80h 0fe7fh 0fe2fh 0fe06h 0fd00h 0fcffh 0f700h 00fffh 00800h 007ffh 00080h 0007fh 00040h 0003fh 00000h ffeffh ffe80h ffe7fh ffe2fh ffe06h ffd00h ffcffh ff700h 00fffh 00800h 007ffh 00080h 0007fh fffffh fffdfh fffd0h fff00h ffeffh ff700h ff6ffh 10000h 0ffffh 00000h note base area, or entry area based on a reset or interrupt. internal ram is excluded in the case of a reset.
m pd784031 20 7.2 cpu registers 7.2.1 general-purpose registers a set of general-purpose registers consists of sixteen general-purpose 8-bit registers. two 8-bit general-purpose registers can be combined to form a 16-bit general-purpose register. moreover, four 16-bit general-purpose registers, when combined with an 8-bit register for address extension, can be used as 24-bit address specification registers. eight banks of this register set are provided. the user can switch between banks by software or the context switching function. general-purpose registers other than the v, u, t, and w registers used for address extension are mapped onto internal ram. figure 7-2. general-purpose register format a (r1) x (r0) b (r3) c (r2) r5 r4 r7 r6 r9 r8 r11 r10 d (r13) e (r12) h (r15) v u t w l (r14) ax (rp0) bc (rp1) rp2 rp3 vp (rp4) up (rp5) de (rp6) hl (rp7) vvp (rg4) uup (rg5) tde (rg6) whl (rg7) the character strings enclosed in parentheses represent absolute names. 8 banks caution by setting the rss bit of psw to 1, r4, r5, r6, r7, rp2, and rp3 can be used as the x, a, c, b, ax, and bc registers, respectively. however, this function must be used only when using programs for the 78k/iii series.
m pd784031 21 7.2.2 control registers (1) program counter (pc) this register is a 20-bit program counter. the program counter is automatically updated by program execution. figure 7-3. format of program counter (pc) 19 0 pc (2) program status word (psw) this register holds the cpu state. the program status word is automatically updated by program execution. figure 7-4. format of program status word (psw) pswh pswl psw 15 14 13 12 uf rbs2 rbs1 rbs0 11 10 9 8 76543210 s z rss note ac ie p/v 0 cy note this flag is used to maintain compatibility with the 78k/iii series. this flag must be set to 0 when programs for the 78k/iii series are being used. (3) stack pointer (sp) this register is a 24-bit pointer for holding the start address of the stack. the high-order 4 bits must be set to 0. figure 7-5. format of stack pointer (sp) 23 20 0 pc 0 0 0 0
m pd784031 22 7.2.3 special function registers (sfrs) the special function registers are registers with special functions such as mode registers and control registers for built-in peripheral hardware. the special function registers are mapped onto the 256-byte space between 0ff00h and 0ffffh note . note applicable when the location 0 instruction is executed. fff00h-fffffh when the location 0fh instruction is executed. caution never attempt to access addresses in this area where no sfr is allocated. otherwise, the m pd784031 may be placed in the deadlock state. the deadlock state can be cleared only by a reset. table 7-1 lists the special function registers (sfrs). the titles of the table columns are explained below. ? abbreviation ................... symbol used to represent a built-in sfr. the abbreviations listed in the table are reserved words for the nec assembler (ra78k4). the c compiler (cc78k4) allows the abbreviations to be used as sfr variables with the #pragma sfr command. ? r/w ................................. indicates whether each sfr allows read and/or write operations. r/w : allows both read and write operations. r : allows read operations only. w : allows write operations only. ? manipulatable bits .......... indicates the maximum number of bits that can be manipulated whenever an sfr is manipulated. an sfr that supports 16-bit manipulation can be described in the sfrp operand. for address specification, an even-numbered address must be speci- fied. an sfr that supports 1-bit manipulation can be described in a bit manipulation instruction. ? when reset ..................... indicates the state of each register when reset is applied.
m pd784031 23 table 7-1. special function registers (sfrs) (1/4) address note special function register (sfr) name abbreviation r/w manipulatable bits when reset 1 bit 8 bits 16 bits 0ff00h port 0 p0 r/w oo - undefined 0ff01h port 1 p1 oo - 0ff02h port 2 p2 r oo - 0ff03h port 3 p3 r/w oo - 0ff06h port 6 p6 oo - 00h 0ff07h port 7 p7 oo - undefined 0ff0eh port 0 buffer register l p0l oo - 0ff0fh port 0 buffer register h p0h oo - 0ff10h compare register (timer/counter 0) cr00 - - o 0ff12h capture/compare register (timer/counter 0) cr01 - - o 0ff14h compare register l (timer/counter 1) cr10 cr10w - oo 0ff15h compare register h (timer/counter 1) - - - 0ff16h capture/compare register l (timer/counter 1) cr11 cr11w - oo 0ff17h capture/compare register h (timer/counter 1) - - - 0ff18h compare register l (timer/counter 2) cr20 cr20w - oo 0ff19h compare register h (timer/counter 2) - - - 0ff1ah capture/compare register l (timer/counter 2) cr21 cr21w - oo 0ff1bh capture/compare register h (timer/counter 2) - - - 0ff1ch compare register l (timer 3) cr30 cr30w - oo 0ff1dh compare register h (timer 3) - - - 0ff20h port 0 mode register pm0 oo - ffh 0ff21h port 1 mode register pm1 oo - 0ff23h port 3 mode register pm3 oo - 0ff26h port 6 mode register pm6 oo - 0ff27h port 7 mode register pm7 oo - 0ff2eh real-time output port control register rtpc oo - 00h 0ff30h capture/compare control register 0 crc0 - o - 10h 0ff31h timer output control register toc oo - 00h 0ff32h capture/compare control register 1 crc1 - o - 0ff33h capture/compare control register 2 crc2 - o - 10h note applicable when the location 0 instruction is executed. when the location 0fh instruction is executed, f0000h is added to each address.
m pd784031 24 table 7-1. special function registers (sfrs) (2/4) address note special function register (sfr) name abbreviation r/w manipulatable bits when reset 1 bit 8 bits 16 bits 0ff36h capture register (timer/counter 0) cr02 r - - o 0000h 0ff38h capture register l (timer/counter 1) cr12 cr12w - oo 0ff39h capture register h (timer/counter 1) - - - 0ff3ah capture register l (timer/counter 2) cr22 cr22w - oo 0ff3bh capture register h (timer/counter 2) - - - 0ff41h port 1 mode control register pmc1 r/w oo - 00h 0ff43h port 3 mode control register pmc3 oo - 0ff4eh register for optional pull-up resistor puo oo - 0ff50h timer register 0 tm0 r - - o 0000h 0ff51h -- 0ff52h timer register 1 tm1 tm1w - oo 0ff53h - - - 0ff54h timer register 2 tm2 tm2w - oo 0ff55h - - - 0ff56h timer register 3 tm3 tm3w - oo 0ff57h - - - 0ff5ch prescaler mode register 0 prm0 r/w - o - 11h 0ff5dh timer control register 0 tmc0 oo - 00h 0ff5eh prescaler mode register 1 prm1 - o - 11h 0ff5fh timer control register 1 tmc1 oo - 00h 0ff60h d/a conversion value setting register 0 dacs0 - o - 0ff61h d/a conversion value setting register 1 dacs1 - o - 0ff62h d/a converter mode register dam oo - 03h 0ff68h a/d converter mode register adm oo - 00h 0ff6ah a/d conversion result register adcr r - o - undefined 0ff70h pwm control register pwmc r/w oo - 05h 0ff71h pwm prescaler register pwpr - o - 00h 0ff72h pwm modulo register 0 pwm0 - - o undefined 0ff74h pwm modulo register 1 pwm1 - - o 0ff7dh one-shot pulse output control register ospc oo - 00h 0ff80h i 2 c bus control register iicc oo - 0ff81h prescaler mode register for serial clock sprm - o - 04h 0ff82h synchronous serial interface mode register csim oo - 00h note applicable when the location 0 instruction is executed. when the location 0fh instruction is executed, f0000h is added to each address.
m pd784031 25 address note 1 special function register (sfr) name abbreviation r/w manipulatable bits when reset 1 bit 8 bits 16 bits 0ff84h synchronous serial interface mode register 1 csim1 r/w oo - 00h 0ff85h synchronous serial interface mode register 2 csim2 oo - 0ff86h serial shift register sio - o - 0ff88h asynchronous serial interface mode register asim oo - 0ff89h asynchronous serial interface mode register 2 asim2 oo - 0ff8ah asynchronous serial interface status register asis r oo - 0ff8bh asynchronous serial interface status register 2 asis2 oo - 0ff8ch serial receive buffer: uart0 rxb - o - undefined serial transmission shift register: uart0 txs w - o - serial shift register: ioe1 sio1 r/w - o - 0ff8dh serial receive buffer: uart2 rxb2 r - o - serial transmission shift register: uart2 txs2 w - o - serial shift register: ioe2 sio2 r/w - o - 0ff90h baud rate generator control register brgc - o - 00h 0ff91h baud rate generator control register 2 brgc2 - o - 0ffa0h external interrupt mode register 0 intm0 oo - 0ffa1h external interrupt mode register 1 intm1 oo - 0ffa4h sampling clock selection register scs0 - o - 0ffa8h in-service priority register ispr r oo - 0ffaah interrupt mode control register imc r/w oo - 80h 0ffach interrupt mask register 0l mk0l mk0 ooo ffffh 0ffadh interrupt mask register 0h mk0h oo 0ffaeh interrupt mask register 1l mk1l oo - ffh 0ffc0h standby control register stbc - o note 2 - 30h 0ffc2h watchdog timer mode register wdm - o note 2 - 00h 0ffc4h memory expansion mode register mm oo - 20h 0ffc5h hold mode register hldm oo - 00h 0ffc6h clock output mode register clom oo - 0ffc7h programmable wait control register 1 pwc1 - o - aah 0ffc8h programmable wait control register 2 pwc2 - - o aaaah table 7-1. special function registers (sfrs) (3/4) notes 1. applicable when the location 0 instruction is executed. when the location 0fh instruction is executed, f0000h is added to each address. 2. a write operation can be performed only with special instructions mov stbc,#byte and mov wdm,#byte. other instructions cannot perform a write operation.
m pd784031 26 table 7-1. special function registers (sfrs) (4/4) note applicable when the location 0 instruction is executed. when the location 0fh instruction is executed, f0000h is added to each address. address note special function register (sfr) name abbreviation r/w manipulatable bits when reset 1 bit 8 bits 16 bits 0ffcch refresh mode register rfm r/w oo - 00h 0ffcdh refresh area specification register rfa oo - 0ffcfh oscillation settling time specification register osts - o - 0ffd0h- external sfr area - oo - - 0ffdfh 0ffe0h interrupt control register (intp0) pic0 oo - 43h 0ffe1h interrupt control register (intp1) pic1 oo - 0ffe2h interrupt control register (intp2) pic2 oo - 0ffe3h interrupt control register (intp3) pic3 oo - 0ffe4h interrupt control register (intc00) cic00 oo - 0ffe5h interrupt control register (intc01) cic01 oo - 0ffe6h interrupt control register (intc10) cic10 oo - 0ffe7h interrupt control register (intc11) cic11 oo - 0ffe8h interrupt control register (intc20) cic20 oo - 0ffe9h interrupt control register (intc21) cic21 oo - 0ffeah interrupt control register (intc30) cic30 oo - 0ffebh interrupt control register (intp4) pic4 oo - 0ffech interrupt control register (intp5) pic5 oo - 0ffedh interrupt control register (intad) adic oo - 0ffeeh interrupt control register (intser) seric oo - 0ffefh interrupt control register (intsr) sric oo - interrupt control register (intcsi1) csiic1 oo - 0fff0h interrupt control register (intst) stic oo - 0fff1h interrupt control register (intcsi) csiic oo - 0fff2h interrupt control register (intser2) seric2 oo - 0fff3h interrupt control register (intsr2) sric2 oo - interrupt control register (intcsi2) csiic2 oo - 0fff4h interrupt control register (intst2) stic2 oo -
m pd784031 27 8. peripheral hardware functions 8.1 ports the ports shown in figure 8-1 are provided to enable the application of wide-ranging control. table 8-1 lists the functions of the ports. for the inputs to port 0 to port 6, a built-in pull-up resistor can be specified by software. figure 8-1. port configuration port 0 p00 p07 8 port 1 p10 p17 port 2 p20-p27 port 3 p30 p37 port 6 p60 p63 p66 p67 port 7 p70 p77
m pd784031 28 table 8-1. port functions 8.2 clock generator a circuit for generating the clock signal required for operation is provided. the clock generator includes a frequency divider; low current consumption can be achieved by operating at a lower internal frequency when high-speed operation is not necessary. figure 8-2. block diagram of clock generator x1 x2 f xx /2 f xx f clk cpu peripheral circuits oscillator uart/ioe intp0 noise eliminator oscillation settling timer selector 1/2 1/2 1/2 1/2 remark f xx : oscillator frequency or external clock input f clk : internal operating frequency port name pin function pull-up specification by software port 0 p00-p07 ? bit-by-bit input/output setting supported specified as a batch for all pins placed in ? operable as 4-bit real-time outputs input mode. (p00-p03, p04-p07) ? capable of driving transistors port 1 p10-p17 ? bit-by-bit input/output setting supported specified as a batch for all pins placed in ? capable of driving leds input mode. port 2 p20-p27 ? input port specified for the 6 bits (p22-p27) as a batch. port 3 p30-p37 ? bit-by-bit input/output setting supported specified as a batch for all pins placed in input mode. port 6 p60-p63 ? output-only port specified as a batch for all pins placed in p66, p67 ? bit-by-bit input/output setting supported input mode. port 7 p70-p77 ? bit-by-bit input/output setting supported -
m pd784031 29 figure 8-3. examples of using oscillator (1) crystal/ceramic oscillation v ss1 x1 x2 pd784031 m (2) external clock ? when extc bit of osts = 1 ? when extc bit of osts = 0 pd784031 x1 x2 pd74hc04, etc. m m x1 x2 open pd784031 m caution when using the clock generator, to avoid problems caused by influences such as stray capacitance, run all wiring within the area indicated by the dotted lines according to the following rules: ? minimize the wiring length. ? wires must never cross other signal lines. ? wires must never run near a line carrying a large varying current. ? the grounding point of the capacitor of the oscillator circuit must always be at the same potential as v ss1 . never connect the capacitor to a ground pattern carrying a large current. ? never extract a signal from the oscillator circuit.
m pd784031 30 8.3 real-time output port the real-time output port outputs data stored in the buffer, synchronized with a timer/counter 1 match interrupt or external interrupt. thus, pulse output that is free of jitter can be obtained. therefore, the real-time output port is best suited to applications (such as open-loop control over stepping motors) where an arbitrary pattern is output at arbitrary intervals. as shown in figure 8-4, the real-time output port is built around port 0 and the port 0 buffer register (p0h, p0l). figure 8-4. block diagram of real-time output port 4 4 4 p0l p0h buffer register 8 4 8 p00 p07 output latch (p0) real-time output port control register (rtpc) output trigger control circuit intp0 (externally) intc10 (from timer/counter 1) intc11 (from timer/counter 1) internal bus
m pd784031 31 8.4 timers/counters three timer/counter units and one timer unit are incorporated. moreover, seven interrupt requests are supported, allowing these units to function as seven timer/counter units. table 8-2. timer/counter operation note the one-shot pulse output function makes the level of a pulse output active by software, and makes the level of a pulse output inactive by hardware (interrupt request signal). note that this function differs from the one-shot timer function of timer/counter 2. name timer/counter 0 timer/counter 1 timer/counter 2 timer 3 item count pulse width 8 bits - ooo 16 bits o ooo operating mode interval timer 2ch 2ch 2ch 1ch external event counter ooo - one-shot timer - - o - function timer output 2ch - 2ch - toggle output o - o - pwm/ppg output o - o - one-shot pulse output note o --- real-time output - o -- pulse width measurement 1 input 1 input 2 inputs - number of interrupt requests 2 2 2 1
m pd784031 32 figure 8-5. timer/counter block diagram timer/counter 0 timer/counter 1 timer/counter 2 timer 3 remark ovf: overflow flag to1 f xx /8 ovf to0 intp3 intp3 intc00 intc01 clear information prescaler selector timer register 0 (tm0) software trigger compare register (cr00) match match pulse output control compare register (cr01) edge detection capture register (cr02) f xx /8 timer register 3 (tm3/tm3w) compare register (cr30/cr30w) prescaler csi clear match intc30 f xx /8 ovf intp0 intp0 intc10 intc11 clear information prescaler selector timer register 1 (tm1/tm1w) event input compare register (cr10/cr10w) match match edge detection capture/compare register (cr11/cr11w) to real-time output port capture register (cr12/cr12w) to3 f xx /8 ovf to2 intp1 intp1 intc20 intc21 intp2/ci intp2 clear information prescaler selector timer register 2 (tm2/tm2w) edge detection edge detection compare register (cr20/cr20w) match match capture/compare register (cr21/cr21w) pulse output control capture register (cr22/cr22w)
m pd784031 33 8.5 pwm output (pwm0, pwm1) two channels of pwm (pulse width modulation) output circuitry with a resolution of 12 bits and a repetition frequency of 62.5 khz (f clk = 16 mhz) are incorporated. low or high active level can be selected for the pwm output channels, independently of each other. this output is best suited to dc motor speed control. figure 8-6. block diagram of pwm output unit internal bus pwm modulo register pwm control register (pwmc) reload control prescaler 8-bit down-counter pulse control circuit 4-bit counter output control pwmn (output pin) 1/256 f clk 84 16 8 pwmn 15 0 8 7 4 3 remark n = 0, 1
m pd784031 34 8.6 a/d converter an analog/digital (a/d) converter having 8 multiplexed analog inputs (ani0-ani7) is incorporated. the successive approximation system is used for conversion. the result of conversion is held in the 8-bit a/d conversion result register (adcr). thus, speedy high-precision conversion can be achieved. (the conversion time is about 7.5 m s at f clk = 16 mhz.) a/d conversion can be started in any of the following modes: ? hardware start : conversion is started by means of trigger input (intp5). ? software start : conversion is started by means of bit setting the a/d converter mode register (adm). after conversion has started, one of the following modes can be selected: ? scan mode : multiple analog inputs are selected sequentially to obtain conversion data from all pins. ? select mode: a single analog input is selected at all times to enable conversion data to be obtained continuously. adm is used to specify the above modes, as well as the termination of conversion. when the result of conversion is transferred to adcr, an interrupt request (intad) is generated. using this feature, the results of conversion can be continuously transferred to memory by the macro service. figure 8-7. block diagram of a/d converter ani0 ani7 intp5 av ref1 av ss r/2 r r/2 8 8 8 input selector tap selector sample-and-hold circuit voltage comparator successive conver- sion register (sar) series resistor string control circuit a/ d converter mode register (adm) a/ d conversion result register (adcr) internal bus edge detector conversion trigger trigger enable intad ani1 ani2 ani3 ani4 ani5 ani6
m pd784031 35 8.7 d/a converter two digital/analog (d/a) converter channels of voltage output type, having a resolution of 8 bits, are incorporated. an r-2r resistor ladder system is used for conversion. by writing the value to be subject to d/a conversion in the 8-bit d/a conversion value setting register (dacsn: n = 0, 1), the resulting analog value is output on anon (n = 0, 1). the range of the output voltages is determined by the voltages applied to the av ref2 and av ref3 pins. because of its high output impedance, no current can be obtained from an output pin. when the load impedance is low, insert a buffer amplifier between the load and the converter. the impedance of the anon pin goes high while the reset signal is low. dacsn is set to 0 after a reset is released. figure 8-8. block diagram of d/a converter selector internal bus dacsn dacen 2r 2r 2r 2r av ref3 av ref2 r r r anon remark n = 0, 1
m pd784031 36 8.8 serial interface three independent serial interface channels are incorporated. ? asynchronous serial interface (uart)/three-wire serial i/o (ioe) 2 ? synchronous serial interface (csi) 1 ? three-wire serial i/o (ioe) ? two-wire serial i/o (ioe) so, communication with points external to the system and local communication within the system can be performed at the same time. (see figure 8-9 .) figure 8-9. example serial interfaces int sck0 sb0 v dd si so sck port int port [two-wire serial i/o] uart + three-wire serial i/o + two-wire serial i/o [three-wire serial i/o] rs-232-c driver/receiver port rxd txd so1 si1 sck1 intpm port sda scl intpn port note note pd75108 (slave) m pd784031 (master) m pd4711a m pd78014 (slave) m v dd (uart) note handshake line
m pd784031 37 8.8.1 asynchronous serial interface/three-wire serial i/o (uart/ioe) two serial interface channels are available; for each channel, asynchronous serial interface mode or three-wire serial i/o mode can be selected. (1) asynchronous serial interface mode in this mode, 1-byte data is transferred after a start bit. a baud rate generator is incorporated to enable communication at a wide range of baud rates. moreover, the frequency of a clock signal applied to the asck pin can be divided to define a baud rate. with the baud rate generator, the baud rate conforming to the midi standard (31.25 kbps) can be obtained. figure 8-10. block diagram of asynchronous serial interface mode rxb, rxb2 txs, txs2 intst, intst2 intsr, intsr2 intser, intser2 1/2m f xx /2 asck, asck2 txd, txd2 rxd, rxd2 1/2 n+1 1/2m baud rate generator receive shift register receive buffer selector transmission control parity bit addition transmission shift register internal bus reception control parity check remark f xx : oscillator frequency or external clock input n = 0 to 11 m = 16 to 30
m pd784031 38 (2) three-wire serial i/o mode in this mode, the master device makes the serial clock active to start transmission, then transfers 1-byte data in phase with the clock. this mode is designed for communication with a device incorporating a conventional synchronous serial interface. basically, three lines are used for communication: the serial clock line (sck) and the two serial data lines (si and so). in general, a handshake line is required to check the state of communication. figure 8-11. block diagram of three-wire serial i/o mode serial clock counter sio1, sio2 si1, si2 so1, so2 sck1, sck2 f xx /2 intcsi1, intcsi2 shift register output latch direction control circuit internal bus serial clock control circuit selector 1/m 1/2 n+1 interrupt signal generator remark f xx : oscillator frequency or external clock input n = 0 to 11 m = 1, 16 to 30
m pd784031 39 8.8.2 synchronous serial interface (csi) with this interface, the master device makes the serial clock active to start transmission, then transfers 1-byte data in phase with the clock. figure 8-12. block diagram of synchronous serial interface remark f xx : oscillator frequency or external clock input internal bus direction control circuit selector shift register set reset output latch n-ch open-drain output enabled (when two-wire mode is used) serial clock counter interrupt signal generator n-ch open-drain output enabled (when two-wire mode is used) serial clock control circuit selector timer 3 output selector prescaler f xx /16 f xx /2 intcsi cls0 cls1 sck0/scl si0 so0/sda
m pd784031 40 (1) three-wire serial i/o mode this mode is designed for communication with a device incorporating a conventional synchronous serial interface. basically, three lines are used for communication: the serial clock line (sck0) and serial data lines (si0 and so0). in general, a handshake line is required to check the state of communication. (2) two-wire serial i/o mode in this mode, 8-bit data is transferred using two lines: the serial clock line (scl) and serial data bus (sda). in general, a handshake line is required to check the communication state. 8.9 edge detection function the interrupt input pins (nmi, intp0-intp5) are used to apply not only interrupt requests but also trigger signals for the built-in circuits. as these pins are triggered by an edge (rising or falling) of an input signal, a function for edge detection is incorporated. moreover, a noise suppression function is provided to prevent erroneous edge detection caused by noise. note intp0 is used for sampling clock selection. pin detectable edge noise suppression method nmi rising edge or falling edge analog delay intp0-intp3 rising edge or falling edge, or both edges clock sampling note intp4, intp5 analog delay 8.10 watchdog timer a watchdog timer is incorporated for cpu runaway detection. the watchdog timer, if not cleared by software within a specified interval, generates a nonmaskable interrupt. furthermore, once watchdog timer operation is enabled, it cannot be disabled by software. the user can specify whether priority is placed on an interrupt based on the watchdog timer or on an interrupt based on the nmi pin. figure 8-13. block diagram of watchdog timer f clk /2 21 f clk intwdt f clk /2 20 f clk /2 19 f clk /2 17 timer clear signal selector
m pd784031 41 9. interrupt function table 9-1 lists the interrupt request handling modes. these modes are selected by software. table 9-1. interrupt request handling modes 9.1 interrupt source an interrupt can be issued from any one of the interrupt sources listed in table 9-2: execution of brk and brkcs instructions, an operand error, or any of the 23 other interrupt sources. four levels of interrupt handling priority can be set. priority levels can be set to nest control during interrupt handling or to concurrently generate interrupt requests. nested macro services, however, are performed without suspension. when interrupt requests having the same priority level are generated, they are handled according to the default priority (fixed). (see table 9-2 .) handling mode handled by handling pc and psw contents vectored interrupt software branches to a handling routine for execution the pc and psw contents are pushed (arbitrary handling). to and popped from the stack. context switching automatically selects a register bank, and the pc and psw contents are saved to branches to a handling routine for execution and read from a fixed area in the (arbitrary handling). register bank. macro service firmware performs operations such as memory-to-i/o- maintained device data transfer (fixed handling).
m pd784031 42 table 9-2. interrupt sources type default source internal/ macro priority name trigger external service software - brk instruction instruction execution - - brkcs instruction operand error when the mov stbc,#byte, mov wdm,#byte, or location instruction is executed, exclusive or of the byte operand and byte does not produce ffh. nonmaskable - nmi detection of edge input on the pin external - wdt watchdog timer overflow internal maskable 0 (highest) intp0 detection of edge input on the pin (tm1/tm1w capture trigger, external enabled tm1/tm1w event conter input) 1 intp1 detection of edge input on the pin (tm2/tm2w capture trigger, tm2/tm2w event conter input) 2 intp2 detection of edge input on the pin ( tm2/tm2w capture trigger, tm2/tm2w event counter input) 3 intp3 detection of edge input on the pin (tm0 capture trigger, tm0 event counter input) 4 intc00 tm0-cr00 match signal issued internal enabled 5 intc01 tm0-cr01 match signal issued 6 intc10 tm1-cr10 match signal issued (in 8-bit operation mode) tm1w-cr10w match signal issued (in 16-bit operation mode) 7 intc11 tm1-cr11 match signal issued (in 8-bit operation mode) tm1w-cr11w match signal issued (in 16-bit operation mode) 8 intc20 tm2-cr20 match signal issued (in 8-bit operation mode) tm2w-cr20w match signal issued (in 16-bit operation mode) 9 intc21 tm2-cr21 match signal issued (in 8-bit operation mode) tm2w-cr21w match signal issued (in 16-bit operation mode) 10 intc30 tm3-cr30 match signal issued (in 8-bit operation mode) tm3w-cr30w match signal issued (in 16-bit operation mode) 11 intp4 detection of edge input on the pin external enabled 12 intp5 detection of edge input on the pin 13 intad a/d converter processing completed (adcr transfer) internal enabled 14 intser asi0 reception error - 15 intsr asi0 reception completed or csi1 transfer completed enabled intcsi1 16 intst asi0 transmission completed 17 intcsi csi0 transfer completed 18 intser2 asi2 reception error - 19 intsr2 asi2 reception completed or csi2 transfer completed enabled intcsi2 20 (lowest) intst2 asi2 transmission completed remark asi: asynchronous serial interface csi: synchronous serial interface
m pd784031 43 9.2 vectored interrupt when a branch to an interrupt handling routine occurs, the vector table address corresponding to the interrupt source is used as the branch address. interrupt handling by the cpu consists of the following operations: ? when a branch occurs : push the cpu status (pc and psw contents) to the stack. ? when control is returned: pop the cpu status (pc and psw contents) from the stack. to return control from the handling routine to the main routine, use the reti instruction. the branch destination addresses must be within the range of 0 to ffffh. table 9-3. vector table address interrupt source vector table address brk instruction 003eh operand error 003ch nmi 0002h wdt 0004h intp0 0006h intp1 0008h intp2 000ah intp3 000ch intc00 000eh intc01 0010h intc10 0012h intc11 0014h intc20 0016h intc21 0018h intc30 001ah intp4 001ch intp5 001eh intad 0020h intser 0022h intsr 0024h intcsi1 intst 0026h intcsi 0028h intser2 002ah intsr2 002ch intcsi2 intst2 002eh
m pd784031 44 9.3 context switching when an interrupt request is generated, or when the brkcs instruction is executed, an appropriate register bank is selected by the hardware. then, a branch to a vector address stored in that register bank occurs. at the same time, the contents of the current program counter (pc) and program status word (psw) are stacked in the register bank. the branch address must be within the range of 0 to ffffh. figure 9-1. context switching caused by an interrupt request psw pc19-16 0000b pc15-0 <6> exchange <5> save <2> save <1> save <7> transfer (bits 8 to 11 of temporary register) register bank n (n = 0-7) temporary register ax bc r5 r4 r7 vp up r6 de h t u v wl switching between register banks (rbs0-rbs2 n) rss 0 ie 0 register bank (0-7) <4> <3> 9.4 macro service the macro service function enables data transfer between memory and special function registers (sfrs) without requiring the intervention of the cpu. the macro service controller accesses both memory and sfrs within the same transfer cycle to directly transfer data without having to perform data fetch. since the cpu status is neither saved nor restored, nor is data fetch performed, high-speed data transfer is possible. figure 9-2. macro service cpu sfr memory read write read write macro service controller internal bus
m pd784031 45 9.5 examples of macro service applications (1) serial interface transmission transmission data storage buffer (memory) intst txs (sfr) txd data n data n - 1 data 2 data 1 internal bus transmission shift register transmission control each time a macro service request (intst) is generated, the next transmission data is transferred from memory to txs. when data n (last byte) has been transferred to txs (that is, once the transmission data storage buffer becomes empty), a vectored interrupt request (intst) is generated. (2) serial interface reception reception data storage buffer (memory) intsr rxb (sfr) rxd data n data n - 1 data 2 data 1 internal bus reception buffer reception shift register reception control each time a macro service request (intsr) is generated, reception data is transferred from rxb to memory. when data n (last byte) has been transferred to memory (that is, once the reception data storage buffer becomes full), a vectored interrupt request (intsr) is generated.
m pd784031 46 (3) real-time output port intc10 and intc11 function as the output triggers for the real-time output ports. for these triggers, the macro service can simultaneously set the next output pattern and interval. therefore, intc10 and intc11 can be used to independently control two stepping motors. they can also be applied to pwm and dc motor control. match (sfr) intc10 p00-p03 (sfr) output pattern profile (memory) output timing profile (memory) p n p nC1 p 2 p 1 internal bus p0l output latch cr10 tm1 internal bus t n t nC1 t 2 t 1 each time a macro service request (intc10) is generated, a pattern and timing data are transferred to the buffer register (p0l) and compare register (cr10), respectively. when the contents of timer register 1 (tm1) and cr10 match, another intc10 is generated, and the p0l contents are transferred to the output latch. when tn (last byte) is transferred to cr10, a vectored interrupt request (intc10) is generated. for intc11, the same operation as that performed for intc10 is performed.
m pd784031 47 10. local bus interface the local bus interface enables the connection of external memory and i/o devices (memory-mapped i/o). it supports a 1m-byte memory space. (see figure 10-1 .) figure 10-1. example of local bus interface data bus latch gate array for i/o expansion including centronics interface circuit, etc. rd wr refrq ad0-ad7 astb pseudo sram prom pd27c1001a pd784031 a16-a19 m m address bus data bus a8-a15 decoder kanji character generator pd24c1000 m 10.1 memory expansion by adding external memory, program memory or data memory can be expanded, 256 bytes at a time, to approximately 1m byte (seven steps).
m pd784031 48 10.2 memory space the 1m-byte memory space is divided into eight spaces, each having a logical address. each of these spaces can be controlled using the programmable wait and pseudo-static ram refresh functions. figure 10-2. memory space fffffh 80000h 7ffffh 40000h 3ffffh 20000h 1ffffh 10000h 0ffffh 0c000h 0bfffh 08000h 07fffh 04000h 03fffh 00000h 512k bytes 256k bytes 128k bytes 64k bytes 16k bytes 16k bytes 16k bytes 16k bytes
m pd784031 49 10.3 programmable wait when the memory space is divided into eight spaces, a wait state can be separately inserted for each memory space while the rd or wr signal is active. this prevents the overall system efficiency from being degraded even when memory devices having different access times are connected. in addition, an address wait function that extends the astb signal active period is provided to produce a longer address decode time. (this function is set for the entire space.) 10.4 pseudo-static ram refresh function refresh is performed as follows: ? pulse refresh : a bus cycle is inserted where a refresh pulse is output on the refrq pin at regular intervals. when the memory space is divided into eight, and a specified area is being accessed, refresh pulses can also be output on the refrq pin as the memory is being accessed. this can prevent the refresh cycle from suspending normal memory access. ? power-down self-refresh : in standby mode, a low-level signal is output on the refrq pin to maintain the contents of pseudo-static ram. 10.5 bus hold function a bus hold function is provided to facilitate connection to devices such as a dma controller. suppose that a bus hold request signal (hldrq) is received from an external bus master. in this case, upon the completion of the bus cycle being performed, the address bus, address/data bus, astb, rd, and wr pins are placed in the high-impedance state, and the bus hold acknowledge signal (hldak) is made active to release the bus for the external bus master. while the bus hold function is being used, the external wait and pseudo-static ram refresh functions are disabled.
m pd784031 50 11. standby function the standby function allows the power consumption of the chip to be reduced. the following standby modes are supported: ? halt mode : the cpu operation clock is stopped. by occasionally inserting the halt mode during normal operation, the overall average power consumption can be reduced. ? idle mode : the entire system is stopped, with the exception of the oscillator circuit. this mode consumes only very little more power than stop mode, but normal program operation can be restored in almost as little time as that required to restore normal program operation from halt mode. ? stop mode : the oscillator is stopped. all operations in the chip stop, such that only leakage current flows. these modes can be selected by software. a macro service can be initiated in halt mode. figure 11-1. standby mode status transition stop (standby) idle (standby) request for masked interrupt halt (standby) nmi, intp4, intp5 input note 1 set stop reset input set idle reset input nmi, intp4, intp5 input note 1 oscillation settling time elapses wait for oscillation settling program operation macro service request end of one operation end of macro service macro service set halt reset input interrupt request note 2 macro service request end of one operation notes 1. intp4 and intp5 are applied when not masked. 2. only when the interrupt request is not masked remark nmi is enabled only by external input. the watchdog timer cannot be used to release one of the standby modes (stop or idle mode).
m pd784031 51 12. reset function applying a low-level signal to the reset pin initializes the internal hardware (reset status). when the reset input makes a low-to-high transition, the following data is loaded into the program counter (pc): ? eight low-order bits of the pc : contents of location at address 0000h ? intermediate eight bits of the pc : contents of location at address 0001h ? four high-order bits of the pc : 0 the pc contents are used as a branch destination address. program execution starts from that address. therefore, a reset start can be performed from an arbitrary address. the contents of each register can be set by software, as required. the reset input circuit contains a noise eliminator to prevent malfunctions caused by noise. this noise eliminator is an analog delay sampling circuit. figure 12-1. accepting a reset reset (input) delay delay delay initialize pc execute instruction at reset start address internal reset signal start reset end reset for power-on reset, the reset signal must be held active until the oscillation settling time (approximately 40 ms) has elapsed. figure 12-2. power-on reset oscillation settling time delay initialize pc execute instruction at reset start address reset (input) internal reset signal end reset v dd
m pd784031 52 13. instruction set (1) 8-bit instructions (the instructions enclosed in parentheses are implemented by a combination of operands, where a is described as r.) mov, xch, add, addc, sub, subc, and, or, xor, cmp, mulu, divuw, inc, dec, ror, rol, rorc, rolc, shr, shl, ror4, rol4, dbnz, push, pop, movm, xchm, cmpme, cmpmne, cmpmnc, cmpmc, movbk, xchbk, cmpbke, cmpbkne, cmpbknc, cmpbkc, chkl, chkla table 13-1. instructions implemented by 8-bit addressing 2nd operand #byte a r saddr sfr !addr16 mem r3 [whl+] n none note 2 r' saddr' !!addr24 [saddrp] pswl [whl-] 1st operand [%saddrg] pswh a (mov) (mov) mov (mov) note 6 mov (mov) mov mov (mov) add note 1 (xch) xch (xch) note 6 (xch) (xch) xch (xch) (add) note 1 (add) note 1 (add) notes 1, 6 (add) note 1 add note 1 add note 1 (add) note 1 r mov (mov) mov mov mov mov ror note 3 mulu add note 1 (xch) xch xch xch xch divuw (add) note 1 add note 1 add note 1 add note 1 inc dec saddr mov (mov) note 6 mov mov inc add note 1 (add) note 1 add note 1 xch dec add note 1 dbnz sfr mov mov mov push add note 1 (add) note 1 add note 1 pop chkl chkla !addr16 mov (mov) mov !!addr24 add note 1 mem mov [saddrp] add note 1 [%saddrg] mem3 ror4 rol4 r3 mov mov pswl pswh b, c dbnz stbc, wdm mov [tde+] (mov) movbk note 5 [tdeC] (add) note 1 movm note 4 notes 1. addc, sub, subc, and, or, xor, and cmp are the same as add. 2. there is no second operand, or the second operand is not an operand address. 3. rol, rorc, rolc, shr, and shl are the same as ror. 4. xchm, cmpme, cmpmne, cmpmnc, and cmpmc are the same as movm. 5. xchbk, cmpbke, cmpbkne, cmpbknc, and cmpbkc are the same as movbk. 6. when saddr is saddr2 with this combination, an instruction with a short code exists.
m pd784031 53 (2) 16-bit instructions (the instructions enclosed in parentheses are implemented by a combination of operands, where ax is described as rp.) movw, xchw, addw, subw, cmpw, muluw, mulw, divux, incw, decw, shrw, shlw, push, pop, addwg, subwg, pushu, popu, movtblw, macw, macsw, sacw table 13-2. instructions implemented by 16-bit addressing 2nd operand #word ax rp saddrp strp !addr16 mem [whl+] byte n none note 2 rp' saddrp' !!addr24 [saddrp] 1st operand [%saddrg] ax (movw) (movw) (movw) (movw) note 3 movw (movw) movw (movw) addw note 1 (xchw) (xchw) (xchw) note 3 (xchw) xchw xchw (xchw) (add) note 1 (addw) note 1 (addw) notes 1,3 (addw) note 1 rp movw (movw) movw movw movw movw shrw mulw note 4 addw note 1 (xchw) xchw xchw xchw shlw incw (addw) note 1 addw note 1 addw note 1 addw note 1 decw saddrp movw (movw) note 3 movw movw incw addw note 1 (addw) note 1 addw note 1 xchw decw addw note 1 sfrp movw movw movw push addw note 1 (addw) note 1 addw note 1 pop !addr16 movw (movw) movw movtblw !!addr24 mem movw [saddrp] [%saddrg] psw push pop sp addwg subwg post push pop pushu popu [tde+] (movw) sacw byte macw macsw notes 1. subw and cmpw are the same as addw. 2. there is no second operand, or the second operand is not an operand address. 3. when saddrp is saddrp2 with this combination, an instruction with a short code exists. 4. muluw and divux are the same as mulw.
m pd784031 54 (3) 24-bit instructions (the instructions enclosed in parentheses are implemented by a combination of operands, where whl is described as rg.) movg, addg, subg, incg, decg, push, pop table 13-3. instructions implemented by 24-bit addressing 2nd operand #imm24 whl rg saddrg !!addr24 mem1 [%saddrg] sp none note 1st operand rg' whl (movg) (movg) (movg) (movg) (movg) movg movg movg (addg) (addg) (addg) addg (subg) (subg) (subg) subg rg movg (movg) movg movg movg incg addg (addg) addg decg subg (subg) subg push pop saddrg (movg) movg !!addr24 (movg) movg mem1 movg [%saddrg] movg sp movg movg incg decg note there is no second operand, or the second operand is not an operand address.
m pd784031 55 (4) bit manipulation instructions mov1, and1, or1, xor1, set1, clr1, not1, bt, bf, btclr, bfset table 13-4. bit manipulation instructions implemented by addressing 2nd operand cy saddr.bit sfr.bit /saddr.bit /sfr.bit none note a.bit x.bit /a.bit /x.bit pswl.bit pswh.bit /pswl.bit /pswh.bit mem2.bit /mem2.bit 1st operand !addr16.bit !!addr24.bit /!addr16.bit /!!addr24.bit cy mov1 and1 not1 and1 or1 set1 or1 clr1 xor1 saddr.bit mov1 not1 sfr.bit set1 a.bit clr1 x.bit bf pswl.bit bt pswh.bit btclr mem2.bit bfset !addr16.bit !!addr24.bit note there is no second operand, or the second operand is not an operand address.
m pd784031 56 (5) call/return instructions and branch instructions call, callf, callt, brk, ret, reti, retb, retcs, retcsb, brkcs, br, bnz, bne, bz, be, bnc, bnl, bc, bl, bnv, bpo, bv, bpe, bp, bn, blt, bge, ble, bgt, bnh, bh, bf, bt, btclr, bfset, dbnz table 13-5. call/return and branch instructions implemented by addressing instruction $addr20 $!addr20 !addr16 !!addr20 rp rg [rp] [rg] !addr11 [addr5] rbn none address operand basic bc note call call call call call call call callf callf brkcs brk instruction br br br br br br br br ret retcs reti retcsb retb composite bf instruction bt btclr bfset dbnz note bnz, bne, bz, be, bnc, bnl, bl, bnv, bpo, bv, bpe, bp, bn, blt, bge, ble, bgt, bnh, and bh are the same as bc. (6) other instructions adjba, adjbs, cvtbw, location, sel, not ei, di, swrs
m pd784031 57 14. electrical characteristics absolute maximum ratings (t a = 25 c) parameter symbol conditions rating unit supply voltage v dd -0.5 to +7.0 v av dd av ss to v dd + 0.5 v av ss -0.5 to +0.5 v input voltage v i -0.5 to v dd + 0.5 v output voltage v o -0.5 to v dd + 0.5 v output low current i ol at one pin 15 ma total of all output pins 100 ma output high current i oh at one pin -10 ma total of all output pins -100 ma a/d converter reference input av ref1 -0.5 to v dd + 0.3 v voltage av ref2 -0.5 to v dd + 0.3 v av ref3 -0.5 to v dd + 0.3 v operating ambient temperature t a -40 to +85 c storage temperature t stg -65 to +150 c d/a converter reference input voltage caution absolute maximum ratings are rated values beyond which physical damage will be caused to the product; if the rated value of any of the parameters in the above table is exceeded, even momentarily, the quality of the product may deteriorate. always use the product within its rated values.
m pd784031 58 operating conditions ? operating ambient temperature (t a ) : -40 to +85 c ? rise time and fall time (t r , t f ) (at pins which are not specified) : 0 to 200 m s ? power supply voltage and clock cycle time : see figure 14-1. figure 14-1. power supply voltage and clock cycle time capacitance (t a = 25 c, v dd = v ss = 0 v) parameter input capacitance output capacitance i/o capacitance symbol c i c o c io conditions f = 1 mhz 0 v on pins other than measured pins min. typ. max. 10 10 10 unit pf pf pf 10 000 4 000 1 000 125 100 62.5 10 01234567 guaranteed operating range power supply voltage [v] clock cycle time t cyk [ns]
m pd784031 59 oscillator characteristics (t a = -40 to +85 c, v dd = +4.5 to 5.5 v, v ss = 0 v) caution when using the system clock generator, run wires in the portion surrounded by broken lines according to the following rules to avoid effects such as stray capacitance: ? minimize the wiring. ? never cause the wires to cross other signal lines. ? never cause the wires to run near a line carrying a large varying current. ? cause the grounding point of the capacitor of the oscillator circuit to have the same potential as v ss1 . never connect the capacitor to a ground pattern carrying a large current. ? never extract a signal from the oscillator. resonator ceramic resonator or crystal external clock recommended circuit min. 4 4 0 10 max. 32 32 10 125 unit mhz mhz ns ns x1 x2 hcmos inverter parameter oscillator frequency (f xx ) x1 input frequency (f x ) x1 input rise and fall times (t xr , t xf ) x1 input high-level and low- level widths (t wxh , t wxl ) v ss1 x1 x2 c2 c1
m pd784031 60 oscillator characteristics (t a = -40 to +85 c, v dd = +2.7 to 5.5 v, v ss = 0 v) caution when using the system clock generator, run wires in the portion surrounded by broken lines according to the following rules to avoid effects such as stray capacitance: ? minimize the wiring. ? never cause the wires to cross other signal lines. ? never cause the wires to run near a line carrying a large varying current. ? cause the grounding point of the capacitor of the oscillator circuit to have the same potential as v ss1 . never connect the capacitor to a ground pattern carrying a large current. ? never extract a signal from the oscillator. resonator ceramic resonator or crystal external clock recommended circuit parameter oscillator frequency (f xx ) x1 input frequency (f x ) x1 input rise and fall times (t xr , t xf ) x1 input high-level and low- level widths (t wxh , t wxl ) min. 4 4 0 10 max. 16 16 10 125 unit mhz mhz ns ns x1 x2 hcmos inverter v ss1 x1 x2 c2 c1
m pd784031 61 dc characteristics (t a = -40 to +85 c, v dd = av dd = +2.7 to 5.5 v, v ss = av ss = 0 v) (1/2) notes 1. x1, x2, reset, p12/asck2/sck2, p20/nmi, p21/intp0, p22/intp1, p23/intp2/ci, p24/intp3, p25/intp4/asck/sck1, p26/intp5, p27/si0, p32/sck0/scl, p33/so0/sda, test 2. ad0-ad7, a8-a15 3. p60/a16-p63/a19, rd, wr, p66/wait/hldrq, p67/refrq/hldak 4. p00-p07 5. p10-p17 parameter input low voltage input high voltage output low voltage output high voltage x1 input low current x1 input high current symbol v il1 v il2 v il3 v ih1 v ih2 v ih3 v ol1 v ol2 v oh1 v oh2 i il i ih conditions for pins other than those described in notes 1, 2, 3, and 4 for pins described in notes 1, 2, 3, and 4 v dd = +5.0 v 10 % for pins described in notes 2, 3, and 4 for pins other than those described in note 1 for pins described in note 1 v dd = +5.0 v 10 % for pins described in notes 2, 3, and 4 i ol = 2 ma v dd = +5.0 v 10 % i ol = 8 ma for pins described in notes 2 and 5 i oh = -2 ma v dd = +5.0 v 10 % i oh = -5 ma for pins described in note 4 extc = 0 0 v v i v il2 extc = 0 v ih2 v i v dd min. -0.3 -0.3 -0.3 0.7v dd 0.8v dd 2.2 v dd - 1.0 v dd - 1.4 typ. max. 0.3v dd 0.2v dd +0.8 v dd + 0.3 v dd + 0.3 v dd + 0.3 0.4 1.0 -30 +30 unit v v v v v v v v v v m a m a
m pd784031 62 dc characteristics (t a = -40 to +85 c, v dd = av dd = +2.7 to 5.5 v, v ss = av ss = 0 v) (2/2) parameter input leakage current output leakage current v dd supply current pull-up resistor symbol i li i lo i dd1 i dd2 i dd3 r l conditions 0 v v i v dd for pins other than x1 when extc = 0 0 v v o v dd operation mode f xx = 32 mhz v dd = +5.0 v 10 % f xx = 16 mhz v dd = +2.7 to 3.3 v halt mode f xx = 32 mhz v dd = +5.0 v 10 % f xx = 16 mhz v dd = +2.7 to 3.3 v idle mode f xx = 32 mhz (extc = 0) v dd = +5.0 v 10 % f xx = 16 mhz v dd = +2.7 to 3.3 v v i = 0 v min. 15 typ. 25 12 13 8 max. 10 10 45 25 26 12 12 8 80 unit m a m a ma ma ma ma ma ma k w
m pd784031 63 ac characteristics (t a = -40 to +85 c, v dd = av dd = +2.7 to 5.5 v, v ss = av ss = 0 v) (1) read/write operation (1/2) remarks t: t cyk (system clock cycle time) a: 1 (during address wait), otherwise, 0 n: number of wait states (n 0) unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns parameter address setup time astb high-level width address hold time (to astb ? ) address hold time (to rd ) delay from address to rd ? address float time (to rd ? ) delay from address to data input delay from astb ? to data input delay from rd ? to data input delay from astb ? to rd ? data hold time (to rd ) delay from rd to address active delay from rd to astb rd low-level width address hold time (to wr ) delay from address to wr ? delay from astb ? to data output delay from wr ? to data output delay from astb ? to wr ? symbol t sast t wsth t hstla t hra t dar t fra t daid t dstid t drid t dstr t hrid t dra t drst t wrl t hwa t daw t dstod t dwod t dstw min. (0.5 + a) t - 15 (0.5 + a) t - 31 (0.5 + a) t - 17 (0.5 + a) t - 40 0.5t - 24 0.5t - 34 0.5t - 14 (1 + a) t - 9 (1 + a) t - 15 0.5t - 9 0 0.5t - 8 0.5t - 12 1.5t - 8 1.5t - 12 0.5t - 17 (1.5 + n) t - 30 (1.5 + n) t - 40 0.5t - 14 (1 + a) t - 5 (1 + a) t - 15 0.5t - 9 max. 0 (2.5 + a + n) t - 37 (2.5 + a + n) t - 52 (2 + n) t - 40 (2 + n) t - 60 (1.5 + n) t - 50 (1.5 + n) t - 70 0.5t + 19 0.5t + 35 0.5t - 11 after program is read after data is read conditions v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 %
m pd784031 64 (1) read/write operation (2/2) note the hold time includes the time during which v oh1 and v ol1 are held under the load conditions of c l = 50 pf and r l = 4.7 k w . remarks t: t cyk (system clock cycle time) n: number of wait states (n 0) (2) bus hold timing remarks t: t cyk (system clock cycle time) a: 1 (during address wait), otherwise, 0 n: number of wait states (n 0) unit ns ns ns ns ns ns ns parameter data setup time (to wr ) data hold time (to wr ) note delay from wr to astb wr low-level width symbol t sodw t hwod t dwst t wwl min. (1.5 + n) t - 30 (1.5 + n) t - 40 0.5t - 5 0.5t - 25 0.5t - 12 (1.5 + n) t - 30 (1.5 + n) t - 40 max. conditions v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % unit ns ns ns ns ns ns ns ns parameter delay from hldrq to float delay from hldrq to hldak delay from float to hldak delay from hldrq ? to hldak ? delay from hldak ? to active min. 1t - 20 1t - 30 max. (6 + a + n) t + 50 (7 + a + n) t + 30 (7 + a + n) t + 40 1t + 30 2t + 40 2t + 60 conditions v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % symbol t fhqc t dhqhhah t dcfha t dhqlhal t dhac
m pd784031 65 (3) external wait timing remarks t: t cyk (system clock cycle time) a: 1 (during address wait), otherwise, 0 n: number of wait states (n 0) (4) refresh timing remark t: t cyk (system clock cycle time) parameter delay from address to wait ? input delay from astb ? to wait ? input hold time from astb ? to wait delay from astb ? to wait delay from rd ? to wait ? input hold time from rd ? to wait ? delay from rd ? to wait delay from wait to data input delay from wait to wr delay from wait to rd delay from wr ? to wait ? input hold time from wr ? to wait delay from wr ? to wait unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns min. (0.5 + n) t + 5 (0.5 + n) t +10 nt + 5 nt + 10 0.5t 0.5t nt + 5 nt + 10 max. (2 + a) t - 40 (2 + a) t - 60 1.5t - 40 1.5t - 60 (1.5 + n) t - 40 (1.5 + n) t - 60 t - 50 t - 70 (1 + n) t - 40 (1 + n) t - 60 0.5t - 5 0.5t - 10 t - 50 t - 75 (1 + n) t - 40 (1 + n) t - 70 conditions v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 % symbol t dawt t dstwt t hstwth t dstwth t drwtl t hrwt t drwth t dwtid t dwtw t dwtr t dwwtl t hwwt t dwwth unit ns ns ns ns ns ns ns ns ns parameter random read/write cycle time refrq low-level pulse width delay from astb ? to refrq delay from rd to refrq delay from wr to refrq delay from refrq to astb refrq high-level pulse width max. min. 3t 1.5t - 25 1.5t - 30 0.5t - 9 1.5t - 9 1.5t - 9 0.5t - 15 1.5t - 25 1.5t - 30 symbol t rc t wrfql t dstrfq t drrfq t dwrfq t drfqst t wrfqh conditions v dd = +5.0 v 10 % v dd = +5.0 v 10 %
m pd784031 66 serial operation (t a = -40 to +85 c, v dd = +2.7 to 5.5 v, av ss = v ss = 0 v) (1) csi remarks 1. the values in this table are those when c l is 100 pf. 2. t : serial clock cycle set by software. the minimum value is 16/f xx . 3. f xx : oscillator frequency unit ns m s ns m s ns m s ns ns ns ns parameter serial clock cycle time (sck0) serial clock low-level width (sck0) serial clock high-level width (sck0) si0 setup time (to sck0 ) si0 hold time (to sck0 ) so0 output delay time (to sck0 ? ) min. 10/f xx + 380 t 5/f xx + 150 0.5t - 40 5/f xx + 150 0.5t - 40 40 5/f xx + 40 0 0 max. 5/f xx + 150 5/f xx + 400 conditions input external clock when sck0 and so0 are cmos i/o output input external clock when sck0 and so0 are cmos i/o output input external clock when sck0 and so0 are cmos i/o output cmos push-pull output (3-wire serial i/o mode) open-drain output (2-wire serial i/o mode), r l = 1 k w symbol t cysk0 t wskl0 t wskh0 t sssk0 t hssk0 t dsbsk1 t dsbsk2
m pd784031 67 parameter serial clock cycle time (sck1, sck2) serial clock low-level width (sck1, sck2) serial clock high-level width (sck1, sck2) setup time for si1 and si2 (to sck1, sck2 ) hold time for si1 and si2 (to sck1, sck2 ) output delay time for so1 and so2 (to sck1, sck2 ? ) output hold time for so1 and so2 (to sck1, sck2 ) (2) ioe1, ioe2 remarks 1. the values in this table are those when c l is 100 pf. 2. t: serial clock cycle set by software. the minimum value is 16/f xx . (3) uart, uart2 unit ns ns ns ns ns ns ns ns ns ns ns ns ns min. 250 500 t 85 210 0.5t - 40 85 210 0.5t - 40 40 40 0 0.5t cysk1 - 40 max. 50 symbol t cysk1 t wskl1 t wskh1 t sssk1 t hssk1 t dsosk t hsosk conditions input v dd = +5.0 v 10 % output internal, divided by 16 input v dd = +5.0 v 10 % output internal, divided by 16 input v dd = +5.0 v 10 % output internal, divided by 16 when data is transferred unit ns ns ns ns ns ns parameter asck clock input cycle time asck clock low-level width asck clock high-level width symbol t cyask t waskl t waskh min. 125 250 52.5 85 52.5 85 max. conditions v dd = +5.0 v 10 % v dd = +5.0 v 10 % v dd = +5.0 v 10 %
m pd784031 68 conditions fr = 1 fr = 0 fr = 1 fr = 0 f xx = 32 mhz, cs = 1 stop mode, cs = 0 other operations remarks t cysmp : sampling clock set by software t cycpu : cpu operation clock set by software in the cpu unit m s m s ns ns ns ns m s m s m s m s parameter nmi low-level width nmi high-level width intp0 low-level width intp0 high-level width low-level width for intp1- intp3 and ci high-level width for intp1- intp3 and ci low-level width for intp4 and intp5 high-level width for intp4 and intp5 reset low-level width reset high-level width symbol t wnil t wnih t wit0l t wit0h t wit1l t wit1h t wit2l t wit2h t wrsl t wrsh min. 10 10 3t cysmp + 10 3t cysmp + 10 3t cycpu + 10 3t cycpu + 10 10 10 10 10 max. conditions a/d converter characteristics (t a = -40 to +85 c, v dd = av dd = av ref1 = +2.7 to 5.5 v, v ss = av ss = 0 v) note quantization error is not included. this parameter is indicated as the ratio to the full-scale value. remark t cyk : system clock cycle time min. 8 120 180 24 36 -0.3 typ. 1 000 0.5 2.0 1.0 max. 1.0 0.8 1/2 av ref1 + 0.3 1.5 5.0 20 symbol t conv t samp v ian r an ai ref1 ai dd1 ai dd2 parameter resolution total error note linearity calibration note quantization error conversion time sampling time analog input voltage analog input impedance av ref1 current av dd supply current unit bit % % lsb t cyk t cyk t cyk t cyk v m w ma ma m a
m pd784031 69 d/a converter characteristics (t a = -40 to +85 c, v dd = av dd = +2.7 to 5.5 v, v ss = av ss = 0 v) parameter resolution total error settling time output resistance analog reference voltage resistance of av ref2 and av ref3 reference power supply input current symbol r o av ref2 av ref3 r airef ai ref2 ai ref3 conditions load conditions: v dd = av dd = av ref2 4 m w , 30 pf = +2.7 to 5.5 v av ref3 = 0 v v dd = av dd = +2.7 to 5.5 v av ref2 = 0.75v dd av ref3 = 0.25v dd load conditions: v dd = av dd = av ref2 2 m w , 30 pf = +2.72.7 to 5.5 v av ref3 = 0 v v dd = av dd = +2.7 to 5.5 v av ref2 = 0.75v dd av ref3 = 0.25v dd load conditions: 2 m w , 30 pf dacs0, 1 = 55 h dacs0, 1 = 55 h min. 8 0.75v dd 0 4 0 -5 typ. 10 8 max. 0.6 0.8 0.8 1.0 10 v dd 0.25v dd 5 0 unit bit % % % % m s k w v v k w ma ma
m pd784031 70 data retention characteristics (t a = -40 to +85 c) note reset, p20/nmi, p21/intp0, p22/intp1, p23/intp2/ci, p24/intp3, p25/intp4/asck/sck1, p26/intp5, p27/si0, p32/sck0/scl, and p33/so0/sda pins ac timing test points parameter data retention voltage data retention current v dd rise time v dd fall time v dd hold time (to stop mode setting) stop clear signal input time oscillation settling time input low voltage input high voltage conditions stop mode v dddr = +2.7 to 5.5 v v dddr = +2.5 v crystal ceramic resonator specific pins note min. 2.5 200 200 0 0 30 5 0 0.9v dddr typ. 10 2 max. 5.5 50 10 0.1v dddr v dddr unit v m a m a m s m s ms ms ms ms v v symbol v dddr i dddr t rvd t fvd t hvd t drel t wait v il v ih 0.8v dd or 2.2 v 0.8 v 0.8v dd or 2.2 v 0.8 v test points v dd - 1 v 0.45 v
m pd784031 71 timing waveform (1) read operation (2) write operation astb a8-a19 ad0-ad7 rd t wsth t sast t dstid t hstla t drst t fra t drid t dar t wrl t dstr t daid t hra t dra t hrid astb a8-a19 ad0-ad7 wr t wsth t sast t hstla t dwst t daw t dstw t hwod t dstod t dwod t dsodw t wwl t hwa
m pd784031 72 hold timing external wait signal input timing (1) read operation (2) write operation hldrq hldak t dhqhhah t fhqc t dcfha t dhac t dhqlhal adtb, a8-a19, ad0-ad7, rd, wr astb a8-a19 ad0-ad7 rd wait t dstwt t hstwth t dstwth t dawt t dwtid t dwtr t drwtl t hrwt t drwth astb a8-a19 ad0-ad7 wr wait t dstwt t hstwth t dstwth t dawt t dwtw t dwwtl t hwwt t dwwth
m pd784031 73 refresh timing waveform (1) random read/write cycle (2) when refresh memory is accessed for a read and write at the same time (3) refresh after a read (4) refresh after a write astb wr rd t rc t rc t rc t rc t rc t wrfql astb rd, wr refrq t dstrfq t drfqst t wrfqh astb rd refrq t drfqst t drrfq t wrfql astb wr refrq t drfqst t dwrfq t wrfql
m pd784031 74 serial operation (1) csi (2) ioe1, ioe2 (3) uart, uart2 sck si so output data input data t sssk0 t hssk0 t dsbsk1 t wskl0 t wskh0 t hsbsk1 t cysk0 sck si so output data input data t sssk1 t hssk1 t dsosk t hsosk t wskl1 t wskh1 t cysk1 asck, asck2 t waskh t waskl t cyask
m pd784031 75 interrupt input timing reset input timing nmi intp0 ci, intp1-intp3 intp4, intp5 t wnih t wnil t wit0h t wit0l t wit1h t wit1l t wit2h t wit2l reset t wrsh t wrsl
m pd784031 76 external clock timing data retention characteristics v dd reset nmi (clearing by falling edge) nmi (clearing by rising edge) t hvd t fvd t rvd t drel v dddr stop mode setting t wait x1 t wxh t wxl t cyx t xf t xr
m pd784031 77 80 pin plastic qfp (14 14) item millimeters inches note each lead centerline is located within 0.13 mm (0.005 inch) of its true position (t.p.) at maximum material condition. l 0.8 0.2 0.031 +0.009 e0.008 m 0.15 0.006 n 0.10 0.004 p 2.7 0.106 a 17.2 0.4 0.677 0.016 b 14.0 0.2 0.551 +0.009 e0.008 c 14.0 0.2 0.551 +0.009 e0.008 d 17.2 0.4 0.677 0.016 f 0.825 0.032 g 0.825 0.032 h 0.30 0.10 0.012 +0.004 e0.005 i 0.13 0.005 j 0.65 (t.p.) 0.026 (t.p.) q 0.1 0.1 0.004 0.004 r5 5 5 5 +0.10 e0.05 +0.004 e0.003 m m l k j h q p n r detail of lead end i g k 1.6 0.2 0.063 0.008 60 61 40 80 1 21 20 41 a b cd f s s80gc-65-3b9-4 s 3.0 max. 0.119 max. 15. package drawings remark the shape and material of the es version are the same as those of the corresponding mass-produced product.
m pd784031 78 80 pin plastic qfp (14 14) item millimeters inches note each lead centerline is located within 0.13 mm (0.005 inch) of its true position (t.p.) at maximum material condition. p80gc-65-8bt f 0.825 0.032 b 14.00 0.20 0.551 +0.009 e0.008 s 1.70 max. 0.067 max. m 0.17 0.007 +0.001 e0.003 +0.03 e0.07 +0.009 e0.008 c 14.00 0.20 0.551 +0.009 e0.008 a 17.20 0.20 0.677 0.008 g 0.825 0.032 h 0.32 0.06 0.013 +0.002 e0.003 i 0.13 0.005 j 0.65 (t.p.) 0.026 (t.p.) k 1.60 0.20 0.063 0.008 l 0.80 0.20 0.031 +0.009 e0.008 n 0.10 0.004 p 1.40 0.10 0.055 0.004 q 0.125 0.075 0.005 0.003 r3 3 +7 e3 +7 e3 d 17.20 0.20 0.677 0.008 41 60 40 61 21 80 20 1 m s q r k m l a b c d j h i f g p n detail of lead end remark the shape and material of the es version are the same as those of the corresponding mass-produced product.
m pd784031 79 remark the shape and material of the es version are the same as those of the corresponding mass-produced product. 80 pin plastic tqfp (fine pitch) ( 12) item millimeters inches i j 0.5 (t.p.) 0.10 0.004 0.020 (t.p.) a note each lead centerline is located within 0.10 mm (0.004 inch) of its true position (t.p.) at maximum material condition. s a 14.0 0.2 0.551 +0.009 e0.008 b 12.0 0.2 0.472 +0.009 e0.008 c 12.0 0.2 0.472 +0.009 e0.008 d 14.0 0.2 0.551 +0.009 e0.008 f g 1.25 1.25 0.049 0.049 h 0.22 0.009 0.002 p80gk-50-be9-4 s 1.27 max. 0.050 max. k 1.0 0.2 0.039 +0.009 e0.008 l 0.5 0.2 0.020 +0.008 e0.009 m 0.145 0.006 0.002 n 0.10 0.004 p 1.05 0.041 q 0.05 0.05 0.002 0.002 r5 5 5 5 +0.05 e0.04 +0.055 e0.045 b c d j h i g f p n l k m q r detail of lead end m 61 60 41 40 21 20 1 80
m pd784031 80 16. recommended soldering conditions the conditions listed below shall be met when soldering the m pd784031. for details of the recommended soldering conditions, refer to our document semiconductor device mounting technology manual (c10535e) . please consult with our sales offices in case any other soldering process is used, or in case soldering is done under different conditions. table 16-1. soldering conditions for surface-mount devices (1/2) (1) m pd784031gc-3b9: 80-pin plastic qfp (14 14 2.7 mm) caution do not apply two or more different soldering methods to one chip (except for partial heating method for terminal sections). (2) m pd784031gc-8bt: 80-pin plastic qfp (14 14 1.4 mm) caution do not apply two or more different soldering methods to one chip (except for partial heating method for terminal sections). soldering process soldering conditions symbol infrared ray reflow peak package's surface temperature: 235 c ir35-00-2 reflow time: 30 seconds or less (210 c or more) maximum allowable number of reflow processes: 2 vps peak package's surface temperature: 215 c vp15-00-2 reflow time: 40 seconds or less (200 c or more) maximum allowable number of reflow processes: 2 wave soldering solder temperature: 260 c or less ws60-00-1 flow time: 10 seconds or less number of flow processes: 1 preheating temperature : 120 c max. (measured on the package surface) partial heating method terminal temperature: 300 c or less - heat time: 3 seconds or less (for one side of a device) soldering process soldering conditions symbol infrared ray reflow peak package's surface temperature: 235 c ir35-00-3 reflow time: 30 seconds or less (210 c or more) maximum allowable number of reflow processes: 3 vps peak package's surface temperature: 215 c vp15-00-3 reflow time: 40 seconds or less (200 c or more) maximum allowable number of reflow processes: 3 wave soldering solder temperature: 260 c or less ws60-00-1 flow time: 10 seconds or less number of flow processes: 1 preheating temperature : 120 c max. (measured on the package surface) partial heating method terminal temperature: 300 c or less - heat time: 3 seconds or less (for one side of a device)
m pd784031 81 table 16-1. soldering conditions for surface-mount devices (2/2) (3) m pd784031gk-be9: 80-pin plastic tqfp (fine pitch) (12 12 mm) note maximum number of days during which the product can be stored at a temperature of 25 c and a relative humidity of 65 % or less after dry-pack package is opened. caution do not apply two or more different soldering methods to one chip (except for partial heating method for terminal sections). soldering process infrared ray reflow vps partial heating method symbol ir35-107-2 vp15-107-2 - soldering conditions peak packages surface temperature: 235 c reflow time: 30 seconds or less (210 c or more) maximum allowable number of reflow processes: 2 exposure limit: 7 days note (10 hours of pre-baking is required at 125 c afterward) non-heat-resistant trays, such as magazine and taping trays, cannot be baked before unpacking. peak packages surface temperature: 215 c reflow time: 40 seconds or less (200 c or more) maximum allowable number of reflow processes: 2 exposure limit: 7 days note (10 hours of pre-baking is required at 125 c afterward) non-heat-resistant trays, such as magazine and taping trays, cannot be baked before unpacking. terminal temperature: 300 c or less heat time: 3 seconds or less (for one side of a device)
m pd784031 82 appendix a development tools the following development tools are available for system development using the m pd784031. language processing software ra78k4 note 1 assembler package for all 78k/iv series models cc78k4 note 1 c compiler package for all 78k/iv series models cc78k4-l note 1 c compiler library source file for all 78k/iv series models prom write tools pg-1500 prom programmer pa-78p4026gc programmer adaptor, connects to pg-1500 pa-78p4038gk pa-78p4026kk pg-1500 controller note 2 control program for pg-1500 debugging tools ie-784000-r in-circuit emulator for all 78k/iv sub-series models ie-784000-r-bk break board for all 78k/iv series models ie-784038-r-em1 emulation board for evaluating m pd784038 sub-series models ie-784000-r-em ie-70000-98-if-b interface adapter when the pc-9800 series computer (other than a notebook) is used as the host machine ie-70000-98n-if interface adapter and cable when a pc-9800 series notebook is used as the host machine ie-70000-pc-if-b interface adapter when the ibm pc/at tm is used as the host machine ie-78000-r-sv3 interface adapter and cable when the ews is used as the host machine ep-78230gc-r emulation probe for 80-pin plastic qfp (gc-3b9 and gc-8bt types) for all m pd784038 sub-series ep-78054gk-r emulation probe for 80-pin plastic tqfp (fine pitch) (gk-be9 type) for all m pd784038 sub-series ev-9200gc-80 socket for mounting on target system board made for 80-pin plastic qfp (gc-3b9 and gc-8bt types) tgk-080sdw adapter for mounting on target system board made for 80-pin plastic tqfp (fine pitch) (gk-be9 type) ev-9900 tool used to remove the m pd78p4038kk-t from the ev-9200gc-80 sm78k4 note 3 system simulator for all 78k/iv series models id78k4 note 3 integrated debugger for ie-784000-r df784038 note 4 device file for all m pd784038 sub-series models real-time os rx78k/iv note 4 real-time os for 78k/iv series models mx78k4 note 2 os for all 78k/iv series models
m pd784031 83 notes 1. ? based on pc-9800 series (ms-dos tm ) ? based on ibm pc/at and compatibles (pc dos tm , windows tm , ms-dos, and ibm dos tm ) ? based on hp9000 series 700 tm (hp-ux tm ) ? based on sparcstation tm (sunos tm ) ? based on news tm (news-os tm ) 2. ? based on pc-9800 series (ms-dos) ? based on ibm pc/at and compatibles (pc dos, windows, ms-dos, and ibm dos) 3. ? based on pc-9800 series (ms-dos + windows) ? based on ibm pc/at and compatibles (pc dos, windows, ms-dos, and ibm dos) ? based on hp9000 series 700 (hp-ux) ? based on sparcstation (sunos) 4. ? based on pc-9800 series (ms-dos) ? based on ibm pc/at and compatibles (pc dos, windows, ms-dos, and ibm dos) ? based on hp9000 series 700 (hp-ux) ? based on sparcstation (sunos) remarks 1. the ra78k4, cc78k4, sm78k4, and id78k4 are used with the df784038. 2. the tgk-080sdw is a product of tokyo eletech corporation (tokyo, 03-5295-1661). consult the nec sales representative for purchasing.
m pd784031 84 appendix b related documents documents related to devices document name document no. japanese english m pd784031 data sheet u11507j this manual m pd784035, 784036, 784037, 784038 data sheet u10847j u10847e m pd78p4038 data sheet u10848j u10848e m pd784038, 784038y sub-series user's manual, hardware u11316j u11316e m pd784038 sub-series special function registers u11090j - 78k/iv series user's manual, instruction u10905j u10905e 78k/iv series instruction summary sheet u10594j - 78k/iv series instruction set u10595j - 78k/iv series application note, software basic u10095j - documents related to development tools (users manual) document name document no. japanese english ra78k4 assembler package operation u11334j u11334e language u11162j - ra78k series structured assembler preprocessor eeu-817 eeu-1402 cc78k4 series operation eeu-960 - language eeu-961 - cc78k series library source file eeu-777 - pg-1500 prom programmer eeu-651 eeu-1335 pg-1500 controller pc-9800 series (ms-dos) base eeu-704 eeu-1291 pg-1500 controller ibm pc series (pc dos) base eeu-5008 u10540e ie-784000-r eeu-5004 eeu-1534 ie-784038-r-em1 u11383j u11383e ep-78230 eeu-985 eeu-1515 ep-78054gk-r eeu-932 eeu-1468 sm78k4 system simulator windows base reference u10093j u10093e sm78k series system simulator external parts user open u10092j u10092e interface specifications id78k4 integrated debugger windows base reference u10440j u10440e caution the above documents may be revised without notice. use the latest versions when you design application systems.
m pd784031 85 documents related to software to be incorporated into the product (user?s manual) document name document no. japanese english 78k/iv series real-time os basic u10603j - installation u10604j - debugger u10364j - os for 78k/iv series mx78k4 basic u11779j - other documents document name document no. japanese english ic package manual c10943x smd surface mount technology manual c10535j c10535e quality grades on nec semiconductor device c11531j c11531e nec semiconductor device reliability/quality control system c10983j c10983e electrostatic discharge (esd) test mem-539 - guide to quality assurance for semiconductor device c11893j mei-1202 guide for products related to micro-computer: other companies c11416j - caution the above documents may be revised without notice. use the latest versions when you design application systems.
m pd784031 86 [memo]
m pd784031 87 notes for cmos devices 1 precaution against esd for semiconductors note: strong electric field, when exposed to a mos device, can cause destruction of the gate oxide and ultimately degrade the device operation. steps must be taken to stop generation of static electricity as much as possible, and quickly dissipate it once, when it has occurred. environmental control must be adequate. when it is dry, humidifier should be used. it is recommended to avoid using insulators that easily build static electricity. semiconductor devices must be stored and transported in an anti-static container, static shielding bag or conductive material. all test and measurement tools including work bench and floor should be grounded. the operator should be grounded using wrist strap. semiconduc- tor devices must not be touched with bare hands. similar precautions need to be taken for pw boards with semiconductor devices on it. 2 handling of unused input pins for cmos note: no connection for cmos device inputs can be cause of malfunction. if no connection is provided to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence causing malfunction. cmos device behave differently than bipolar or nmos devices. input levels of cmos devices must be fixed high or low by using a pull-up or pull-down circuitry. each unused pin should be connected to v dd or gnd with a resistor, if it is considered to have a possibility of being an output pin. all handling related to the unused pins must be judged device by device and related specifications governing the devices. 3 status before initialization of mos devices note: power-on does not necessarily define initial status of mos device. production process of mos does not define the initial operation status of the device. immediately after the power source is turned on, the devices with reset function have not yet been initialized. hence, power-on does not guarantee out-pin levels, i/o settings or contents of registers. device is not initialized until the reset signal is received. reset operation must be executed immediately after power-on for devices having reset function.
m pd784031 88 iebus is a trademark of nec corporation. ms-dos and windows are trademarks of microsoft corporation. ibm dos, pc/at, and pc dos are trademarks of ibm corporation. hp9000 series 700 and hp-ux are trademarks of hewlett-packard company. sparcstation is a trademark of sparc international, inc. sunos is a trademark of sun microsystems, inc. news and news-os are trademarks of sony corporation.
m pd784031 89 nec electronics inc. (u.s.) santa clara, california tel: 800-366-9782 fax: 800-729-9288 nec electronics (germany) gmbh duesseldorf, germany tel: 0211-65 03 02 fax: 0211-65 03 490 nec electronics (uk) ltd. milton keynes, uk tel: 01908-691-133 fax: 01908-670-290 nec electronics italiana s.r.1. milano, italy tel: 02-66 75 41 fax: 02-66 75 42 99 nec electronics hong kong ltd. hong kong tel: 2886-9318 fax: 2886-9022/9044 nec electronics hong kong ltd. seoul branch seoul, korea tel: 02-528-0303 fax: 02-528-4411 nec electronics singapore pte. ltd. united square, singapore 1130 tel: 253-8311 fax: 250-3583 nec electronics taiwan ltd. taipei, taiwan tel: 02-719-2377 fax: 02-719-5951 nec do brasil s.a. sao paulo-sp, brasil tel: 011-889-1680 fax: 011-889-1689 nec electronics (germany) gmbh benelux office eindhoven, the netherlands tel: 040-2445845 fax: 040-2444580 nec electronics (france) s.a. velizy-villacoublay, france tel: 01-30-67 58 00 fax: 01-30-67 58 99 nec electronics (france) s.a. spain office madrid, spain tel: 01-504-2787 fax: 01-504-2860 nec electronics (germany) gmbh scandinavia office taeby, sweden tel: 08-63 80 820 fax: 08-63 80 388 regional information some information contained in this document may vary from country to country. before using any nec product in your application, please contact the nec office in your country to obtain a list of authorized representatives and distributors. they will verify: ? device availability ? ordering information ? product release schedule ? availability of related technical literature ? development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, ac supply voltages, and so forth) ? network requirements in addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. j96. 8
m pd784031 no part of this document may be copied or reproduced in any form or by any means without the prior written consent of nec corporation. nec corporation assumes no responsibility for any errors which may appear in this document. nec corporation does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from use of a device described herein or any other liability arising from use of such device. no license, either express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of nec corporation or others. while nec corporation has been making continuous effort to enhance the reliability of its semiconductor devices, the possibility of defects cannot be eliminated entirely. to minimize risks of damage or injury to persons or property arising from a defect in an nec semiconductor device, customers must incorporate sufficient safety measures in its design, such as redundancy, fire-containment, and anti-failure features. nec devices are classified into the following three quality grades: "standard", "special", and "specific". the specific quality grade applies only to devices developed based on a customer designated "quality assurance program" for a specific application. the recommended applications of a device depend on its quality grade, as indicated below. customers must check the quality grade of each device before using it in a particular application. standard: computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots special: transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) specific: aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems or medical equipment for life support, etc. the quality grade of nec devices is "standard" unless otherwise specified in nec's data sheets or data books. if customers intend to use nec devices for applications other than those specified for standard quality grade, they should contact an nec sales representative in advance. anti-radioactive design is not implemented in this product. m4 96.5 some related documents may be preliminary versions. note that, however, what documents are preliminary is not indicated in this document.


▲Up To Search▲   

 
Price & Availability of UPD784031GK-BE9

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X